b56360d25e40a3b903c73b8f9c849c3d86293913,plugins/hg4idea/src/org/zmlx/hg4idea/command/HgAnnotateCommand.java,HgAnnotateCommand,execute,#HgFile#,48
Before Change
public List<HgAnnotationLine> execute(@NotNull HgFile hgFile) {
HgCommandExecutor executor = new HgCommandExecutor(project);
HgCommandResult result = executor.executeInCurrentThread(hgFile.getRepo(), "annotate", Arrays.asList("-cqnudl", hgFile.getRelativePath()));
final List<HgAnnotationLine> annotations = new ArrayList<HgAnnotationLine>();
if (result == null) {
After Change
}
public List<HgAnnotationLine> execute(@NotNull HgFile hgFile, VcsFileRevision revision) {
final List<String> arguments = new ArrayList<String>();
arguments.add("-cqnudl");
if (revision != null) {
arguments.add("-r");
HgRevisionNumber revisionNumber = (HgRevisionNumber)revision.getRevisionNumber();
arguments.add(revisionNumber.getChangeset());
}
arguments.add(hgFile.getRelativePath());
final HgCommandResult result = new HgCommandExecutor(project).executeInCurrentThread(hgFile.getRepo(), "annotate", arguments);
final List<HgAnnotationLine> annotations = new ArrayList<HgAnnotationLine>();